home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 632 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  921 b 

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: simpsondg@aol.com (SimpsonDG)
  3. Newsgroups: comp.lang.c,alt.msdos.programmer
  4. Subject: Re: Two strange C problems.
  5. Date: 8 Jan 1996 00:36:01 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4cqag1$h41@newsbf02.news.aol.com>
  9. References: <4cojb2$qog@lugb.latrobe.edu.au>
  10. Reply-To: simpsondg@aol.com (SimpsonDG)
  11. NNTP-Posting-Host: newsbf02.mail.aol.com
  12.  
  13. Regarding problem 2:  When you use \27, \13, \24, and \25, you are
  14. specifying OCTAL constants.  So, for example, \24 = octal 24 = decimal 20
  15. = the "paragraph" character on a PC. 
  16.  
  17. Normally I specify special characters like this according to their hex
  18. values.  To do this, use the form \xnn, where nn are the hexadecimal
  19. digits.  For your example, you could use
  20.  
  21. const escape=\x1b;
  22. const cr=\x0d
  23. const bs=\x08;
  24.  
  25. David G. Simpson
  26. University of Maryland, Baltimore County
  27.